package kokonut.shop.product;

import java.util.ArrayList;

import javax.jdo.annotations.Inheritance;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import kokonut.shop.color.Color;
import kokonut.shop.color.ExistingColors;
import kokonut.shop.size.ExistingSizes;
import kokonut.shop.size.Size;

@PersistenceCapable
@Inheritance(customStrategy = "complete-table")
public class TShirt extends TShirtModel {

    @Persistent
    private ExistingColors color;
    @Persistent
    private ExistingSizes size;
    @Persistent
    private float price;
    @Persistent
    private Image image;

    public TShirt() {
    }

    public TShirt(int ref, String name, ArrayList<Size> availableSizes, ArrayList<Color> availableColors,
            ArrayList<Image> images) {
        super(ref, name, availableSizes, availableColors, images);
    }

    public TShirt(int ref, String name, ArrayList<Size> availableSizes, ArrayList<Color> availableColors,
            ArrayList<Image> images, ExistingColors color, ExistingSizes size, float price, Image image) {
        super(ref, name, availableSizes, availableColors, images);
        this.color = color;
        this.size = size;
        this.price = price;
        this.image = image;
    }

    public ExistingColors getColor() {
        return color;
    }

    public void setColor(ExistingColors color) {
        this.color = color;
    }

    public ExistingSizes getSize() {
        return size;
    }

    public void setSize(ExistingSizes size) {
        this.size = size;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public Image getImage() {
        return image;
    }

    public void setImage(Image image) {
        this.image = image;
    }
}
